import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
/*加载工具类*/
import Storage from '@/utils/StorageUtil'
import API from '@/utils/APIUtil'
import fetch from './utils/fetch'

Vue.config.productionTip = false
Vue.use(elementUI)/*使用ElementUI组件*/

//定义全局变量
const extend = Vue.prototype
extend.Storage = Storage;
extend.API = API;
extend.$post = fetch.post
extend.$get = fetch.get
extend.$form = fetch.form

new Vue({
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('#app')
